package at.ac.tuwien.sepm.s2011.e0208329.domain;

public class Item {
	public int ItemNr;
	public String Name;
	public int Price;
	public String Type;
	public int Storage;
	
	//Constructor

	/*
	public Item(int nr, String name, int pr, String type, int str){
		this.ItemNr = nr;
		this.Name = name;
		this.Price = pr;
		this.Type = type;
		this.Storage =str;
	}*/
	
	//Setter
	public void setItem(int nr, String name, int pr, String type, int str){
		this.ItemNr = nr;
		this.Name = name;
		this.Price = pr;
		this.Type = type;
		this.Storage =str;
	}
	
	//Getter
	public int getNr(){
		return this.ItemNr;
	}
	
	public String getName(){
		return this.Name;
	}
	
	public int getPrice(){
		return this.Price;
	}
	
	public String getType(){
		return this.Type;
	}
	
	public int getSto(){
		return this.Storage;
	}
	
	//Print in command line
	public void print(){
		System.out.println(ItemNr+", "+Name+", "+Price+", "+Type+", "+Storage);
	}

	//Generate a String as report of Item's data
	public String report(){
		String s = (ItemNr+", "+Name+", "+Price+", "+Type+", "+Storage+"\n");
		return s;
	}
}
